package org.mq.mymq.client.consumer;

import org.mq.mymq.common.enums.ConsumeResultStatus;

/**
 * @ClassName ConsumerResult
 * @Description
 * @Author jiarong_ye
 * @Date 2025/6/28 12:18
 * @Version 1.0
 */
public class ConsumeResult {
    /**
     * 消费结果
     */
    private int consumeResultStatus;

    public ConsumeResult(int consumeResultStatus) {
        this.consumeResultStatus = consumeResultStatus;
    }

    public static ConsumeResult CONSUME_SUCCESS() {
        return new ConsumeResult(ConsumeResultStatus.CONSUME_SUCCESS.getCode());
    }

    public static ConsumeResult CONSUME_LATER() {
        return new ConsumeResult(ConsumeResultStatus.CONSUME_LATER.getCode());
    }

    public int getConsumeResultStatus() {
        return consumeResultStatus;
    }

    public void setConsumeResultStatus(int consumeResultStatus) {
        this.consumeResultStatus = consumeResultStatus;
    }
}
